Added an ambient light sensor