Temperature & Humidity SensorSOURCE CODE: #include <dht.h> //include the temperature and humidity sensor library #define dht_apin A0 //define the sensor to pin A0 ...
Light Blocking Sensor | ArduinoSOURCE CODE: const int lightBlocking = A0; //define sensor to pin A0 const int led = 9;//define led to pin 9 int val;//create sensor...
Key Pad w/ Serial Monitor | ArduinoSOURCE CODE: //Keypad Serial Monitor #include <Keypad.h> const byte ROWS = 4; //four rows const byte COLS = 4; //four columns //define...
Control 12 LEDs without a Shift Register-ArduinoSOURCE CODE: const int led1 = 2; const int led2 = 3; const int led3 = 4; const int led4 = 5; const int led5 = 6; const int led6 = 7;...
Arduino SMD RGB LEDSOURCE CODE: const int blue = 3;//set blue to pin 3 const int red = 5;//set red to pin 5 const int green = 6;//set green to pin 6 void...
Arduino Fire AlarmSOURCE CODE: const int flameSens = A0;//set flame sensor to pin A0 const int speaker = 8;//set speaker to pin 8 int flameVal;//set up...