Auto Brightness On – iOS 8

Auto-Brightness automatically adjusts the screen brightness for the current lighting conditions.

Tap Settings >>Tap Display & Brightness >> Tap the Auto-Brightness toggle switch to on.