Mine does exactly the same, I don't think it has anything to do with the sensor (unless something is wrong with it 🙁). As others have said the brightness will dim as if you've not used it for a couple of minutes and then will go back to normal as soon as its dimmed as if you've touched a key or the trackpad.