How to calibrate your iPhone’s brightness and motion sensors if they aren’t working properly