Here we read light's intensity using a light dependent resistor or LDR, this value is between 0 - 1023 (0 represent no light), this value is sent to serial terminal. You can control start and stop of data acquisition by sending 's' and 'e' chars. s for start and e for end.