measure the ambient light value
pin: int. the aio pin which is attached by the sensor
trigger: any type. trigger signal, and whenever it comes, the sensor will measure and report the light value.
value: number. the value of the light
It measure the light in every 1s, if the value is below 100, turn on the light, otherwise, turn off.