Code for the LDR Serial Sensor Class