This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const int sensorPin = A0; | |
const int ledPin = 9; | |
int sensorValue = 0; | |
int sensorMin = 1023; | |
int sensorMax = 0; | |
int buzzer = 8; | |
void setup() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int buttonState = 0; | |
int led = 9; | |
int button = 7; | |
int led2 = 3; | |
void setup() { | |
pinMode(led, OUTPUT); | |
pinMode(button, INPUT); | |
pinMode(led2, OUTPUT); | |
// Serial.begin(9600); |