If your iPhone's sensors aren't working correctly, you may need to calibrate them. Here's how to calibrate an iPhone's brightness and motion sensors.
You can calibrate an Apple Watch to get the most accurate tracking of your workouts. To calibrate, you'll need to walk or run for 20 minutes outdoors.