Zipped Arduino sketch: Download sketch
Required library (with changes): EtherCard
Connection:
- Ethernet module to ICSP on Arduino (MOSI – SI, MISO – SO, SCK – SCK, GND-GND), pin CS to pin 8, VCC to 3,3V
- DHT11 output to pin 12
- MQ7 analog output to pin A0
- Photoresistor between VCC and pin A1, whichis pulled down to ground by 1KΩ resistor
- Ethernet module connnected to router