Hi everyone!
I am completely new to this, and chose this as my first project.
Probably should have started with something more simple...
Anyway, this is a bit more that a project, is something that I realy need working...
I bought all the parts, download everything and know I am getting some errors when compiling the sketch.
Highlithed in yellow is the lines I am having problem with...
The first one says:
error: 'DHT22' was not declared in this scope - This should be only to identify the sensor type inside the DHT library.
However if I include the DHT22 library the error goes away.
Then the next one says:
error: expected primary-expression before ')' token - I don't have a clue how to solve this one...
There is some more, but one at the time... LOL
/*DHT.cpp has an default delay of 250. This makes the system realy slow and must be adjusted to 50 to react faster
Hardware used:
Arduino uno
Ethernet Shield W5100
DFRobot LCD Keypad Shield
DHT22 Humidity and Temperature sensor
2x 2 channel 5v relay
_____1 Room Thermostat pin 2
Relay 1___2/ Heater pin 2
_______3 Relay 2
_____1 Mot Connected
Relay 2___2/ Relay 1
_______3 Heater pin 1 and Room Thermostat pin 1
*/
#include <LiquidCrystal.h>
#include <Ethernet.h>
#include <HTTPClient.h>
#include <EEPROMEx.h>
#include <SPI.h>
#include <DHT.h>
#define DHTPIN1 (A0) // pin connected to temperature sensor
#define DHTPIN2 (A1) // optional second temperature sensor
#define DHTTYPE DHT22
DHT dht1(DHTPIN1, DHTTYPE);
DHT dht2(DHTPIN2, DHTTYPE);
const int System = 2; // pin connected to relay 1
const int Heater = 3; // pin connected to relay 2
const int Buzzer = A5; // pin connected to buzzer
float Tc; // measured temperature
float Td; // disired temperature
float h1;
float h2;
float t2;
float Tt;
int softwareversion = 1191;
int address = 0; // eeprom address
If anyone can help will be much appreciated!
Thank you in advance!