When you go into a darker room the display dims to reduce harshness on the eyes. The sensor is right next to the isight camera, so if you press your thumb over the isight camera the display will dim. You can turn it off in the system preferences if you don't want it to happen...