KY013: Analog Temprature Sensor
int sensorPin = A5; // select the input pin for the potentiometer int ledPin = 13; // select the pin […]
int sensorPin = A5; // select the input pin for the potentiometer int ledPin = 13; // select the pin […]
int buzzer=11;// void setup() { pinMode(buzzer,OUTPUT);// } void loop() { unsigned char i,j;// while(1) { for(i=0;i<80;i++)//output sound of one frequency […]
int redpin = 11; // select the input pin for the potentiometer int bluepin =10; // select the pin for […]
Sensor KY015 Arduino Sample Code by Patrick #define dht_dpin A0 byte bGlobalErr; byte dht_dat[5]; void setup(){ InitDHT(); Serial.begin(9600); delay(300); Serial.println("Humidity […]
/* Button Turns on and off a light emitting diode(LED) connected to digital pin 13, when pressing a pushbutton attached […]
int sensorPin = A5; // select the input pin for the potentiometer int ledPin = 13; // select the pin […]
/* Blink Turns on an LED on for one second, then off for one second, repeatedly. This example code is […]
/* Button Turns on and off a light emitting diode(LED) connected to digital pin 13, when pressing a pushbutton attached […]
/* Button Turns on and off a light emitting diode(LED) connected to digital pin 13, when pressing a pushbutton attached […]
int sensorPin = 5; int value = 0; void setup() { pinMode(3, OUTPUT); Serial.begin(9600); } void loop() { value = […]