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 led = 13;//LED pin | |
int sensor = A5; //sensor pin | |
int val; //numeric variable | |
void setup() | |
{ | |
pinMode(led, OUTPUT); | |
} | |
void loop() |
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
#include <EEPROM.h> | |
const int buttonPin = 12; // the number of the pushbutton pin | |
const int ledPin = 13; // the number of the LED pin | |
const int temperaturePin = A0; | |
float minTemp, maxTemp; // Variables to store min and max temperature | |
int buttonState = 0; // variable for reading the pushbutton status |