Are there apps to control this? Seems like LED something?
You can test the functionality of your light sensor and all of your other sensors with androsensor.. try it.
DROID RAZR MAXXIMIZED!!!! PREPARE TO BE VANQUISHED!!!
FEEL THE POWER OF DROID!!!
I had the same issue with the Maxx . Was resolved when I switched from the Otterbox defender to Diztronic TPU case and Steinhall Ultra Crystal screen protector. The screen protector on the OB causes some issues.