Added some light sensing code