Skip to content

Instantly share code, notes, and snippets.

View quozl's full-sized avatar

James Cameron quozl

View GitHub Profile
int led = 13;//LED pin
int sensor = A5; //sensor pin
int val; //numeric variable
void setup()
{
pinMode(led, OUTPUT);
}
void loop()
#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