measure the value of the knob (0-1024)
pin: int. the aio pin which the sensor attached
trigger: any type. trigger signal, and whenever it comes, the sensor will measure and report the knob value.
value: number. the value of the knob (0-1024)
It reads knob value in every 1s, if the value is above 500, then turn on the buzzer.