To get the readings use the function analogRead. In the void loop, define the variable level that stores the integer readings coming from the sensor.Also, for the initial state, set the buzzer value low using the digitalWrite( ) function.
0 Comments
Leave a Reply. |