added code to receive lights data from arduino