Why does my light keep turning up and down by itself?

My phone light keep turning up without me touching it and it's starting to get annoying
Disable or reconfigure the auto-brightness setting.
Welcome to iMore! Auto-Brightness is enabled on your iPhone in Settings > Display & Brightness. This will automatically adjust the screen brightness based on ambient light conditions. You can turn it off if you want and then adjust brightness manually using Control Center.
JPEG image-75F60454840A-1.jpeg
Phone trouble

The lights on my phone is turning itself down
Disable the auto brightness: settings>display & brightness and toggle the auto brightness to off (greyed out)
If auto-brightness is on, the display on your phone with brighten or darken depending on the amount of ambient light available. Some people (lime my son) hate that and keeps his turned off and manually adjusts as needed. I personally like it on.

Original thread: https://forums.imore.com/threads/why-does-my-light-keep-turning-up-and-down-by-itself.348397/