Weather station with LED
#include
#include
#include “DHT.h”
#define DHTPIN A0
#define DHTTYPE DHT11
LiquidCrystal lcd(13, 12, 11, 10,
9, 8);
DHT dht(DHTPIN, DHTTYPE);
void setup(){
Serial.begin(9600);
for (int DigitalPin = 3; DigitalPin
<= 7; DigitalPin++)
{
pinMode(DigitalPin, OUTPUT);
}
lcd.begin(16,2);
dht.begin();
}
}
else if (t>22)
{
digitalWrite(5, HIGH);
digitalWrite(3, LOW);
digitalWrite(7, LOW);
}
else if (t>=30)
{
digitalWrite(7, HIGH);
digitalWrite(3, LOW);
digitalWrite(5, LOW);
}
}
void loop(){
delay(1000);
!
float h = dht.readHumidity();
float t = dht.readTemperature();
large 3-D light ornaments
that are made of hundreds
of thousands of light points.
Using the tablet provided, they
can also rotate
the tree in three
dimensions.
lcd.setCursor(0,1);
lcd.print(“Humid: “);
lcd.print(h);
lcd.print(“%”);
if (t<=22) {
digitalWrite(3, HIGH);
digitalWrite(5, LOW);
digitalWrite(7, LOW);
This is an interactive, three-
dimensional Crystal tree that
is made from a cumulation
of light points. It uses
Interactive 4-D Vision to display
dynamic visuals in real time
based on selections made
by participants. People can
decorate the tree from their
smartphones
by
adding
lcd.clear();
lcd.setCursor(0,0);
lcd.print(“Temp: “);
lcd.print(t);
lcd.print(“’C”);