proximity code
formated controller code
added light in dark logic