LED turns off if the photoresistor has a reading greater than 300 (i.e. if not much light gets onto the photoresistor), otherwise LED turns on.