Which sensor are you talking about? Do you mean the ambient light sensor? There's no "easy" way to just disable it. Although I'm sure you could by deleting a few key libraries somewhere. However, you can go into Control Panel --> Display and set the "Brightness Period" to 1440 minutes. This should keep the ambient light sensor from checking to adjust the screen brightness for 24 hours.