Ajuda Pf com sketch weather station

bem aqui estou eu novamente com um pedido de ajuda a minha questão é esta será que dá pra adicionar um detector de chuva e um Anemômetro mas tudo coisa simples hi encontrei este código na net
Era isto assim mas com detector de chuva e Anemômetro tudo junto para eu puder ver nas paginas web eu ainda não comprei nada em concreto pq não sei o que devo de comprar
Obrigado a quem me puder Ajudar

#include <DHT.h>

#define DHTPIN A1 // what pin we're connected to

// Uncomment whatever type you're using!
//#define DHTTYPE DHT11 // DHT 11
#define DHTTYPE DHT22 // DHT 22 (AM2302)
//#define DHTTYPE DHT21 // DHT 21 (AM2301)

// Connect pin 1 (on the left) of the sensor to +5V
// Connect pin 2 of the sensor to whatever your DHTPIN is
// Connect pin 4 (on the right) of the sensor to GROUND
// Connect a 10K resistor from pin 2 (data) to pin 1 (power) of the sensor

DHT dht(DHTPIN, DHTTYPE);

#include <SPI.h>
#include <Ethernet.h>

// Enter a MAC address and IP address for your controller below.
// The IP address will be dependent on your local network:
byte mac[] = {
0xD4, 0x28, 0xB2, 0xFF, 0xA0, 0xA1 }; //MAC address found on the back of your ethernet shield.
IPAddress ip(192,168,1,82); // IP address dependent upon your network addresses.

// Initialize the Ethernet server library
// with the IP address and port you want to use
// (port 80 is default for HTTP):
EthernetServer server(80);

void setup() {
// Open serial communications and wait for port to open:
Serial.begin(9600);
while (!Serial) {
; // wait for serial port to connect. Needed for Leonardo only
}

dht.begin();

// start the Ethernet connection and the server:
Ethernet.begin(mac, ip);
server.begin();
Serial.print("server is at ");
Serial.println(Ethernet.localIP());
}

void loop() {

// Reading temperature or humidity takes about 100 milliseconds!
// Sensor readings may also be up to 2 seconds 'old' (its a very slow sensor)
float h = dht.readHumidity();
float t = dht.readTemperature();

// check if returns are valid, if they are NaN (not a number) then something went wrong!
if (isnan(t) || isnan(h)) {
Serial.println("Failed to read from DHT");
} else {
Serial.print("Humidity: ");
Serial.print(h);
Serial.print(" %\t");
Serial.print("Temperature: ");
Serial.print(t);
Serial.println(" *C");
}

// listen for incoming clients
EthernetClient client = server.available();
if (client) {
Serial.println("new client");
// an http request ends with a blank line
boolean currentLineIsBlank = true;
while (client.connected()) {
if (client.available()) {
char c = client.read();
Serial.write(c);
// if you've gotten to the end of the line (received a newline
// character) and the line is blank, the http request has ended,
// so you can send a reply
if (c == '\n' && currentLineIsBlank) {
// send a standard http response header
client.println("HTTP/1.1 200 OK");
client.println("Content-Type: text/html");
client.println("Connection: close"); // the connection will be closed after completion of the response
client.println("Refresh: 5"); // refresh the page automatically every 5 sec
client.println();
client.println("");
client.println("");

// output the value of the DHT-22
client.println("

");
client.print("Humidade: ");
client.println("

");
client.println("

");
client.println("

");
client.print(h);
client.print(" %\t");
client.println("

");
client.println("

");
client.println("

");
client.print("Temperatura: ");
client.println("

");
client.println("

");
client.print(t);
client.println(" °");
client.println("C");
client.println("

");

client.println("");
break;
}
if (c == '\n') {
// you're starting a new line
currentLineIsBlank = true;
}
else if (c != '\r') {
// you've gotten a character on the current line
currentLineIsBlank = false;
}
}
}
// give the web browser time to receive the data
delay(1);
// close the connection:
client.stop();
Serial.println("client disonnected");
}
}

O que entende por detector de chuva? Quer apenas saber se está ou não a chover o que saber a quantidade de chuva que está a cair (ou que caiu num determinado período)?

Somente saber se esta a chover ou não

e saber a velocidade do vento pq assim saberia que avia vento tb no Anemômetro
Vi na net que dava pra fazer um Anemômetro com um motor dc
Bem o sketch é o que eu postei e esta a funcionar bem para Humidade e temperatura via Ethernet era só acrescentar sensor de chuva e um Anemômetro
Será que é possível fazer isso tudo num só sketch ?

Também podes fazer isso com um Led reflector, por exemplo...

Acho que será possível de fazer num sketch... claro que dependerá das bibliotecas que usas... e do uso da porta série (por exemplo).

Fazer o anemómetro com um motor DC, pode ser possível, mas não é muito fácil de o ligar a um arduino para medir a velocidade do vento. Já pesquisaste a ver se encontras só o corpo dum anemómetro que tenha um sensor de pulsos (tipo encoder)?

Saber se está a chover é mais complicado, mas existem uns sensores no ebay que se colocados num determinado angulo (para possibilitar à chuva escorrer), poderão servir... no entanto, eu tenho dúvidas acerca da durabilidade desse sensor e da facilidade de determinar se está a chover ou não.

Obrigado por a sua gentileza e disponibilidade em me ter respondido

bem eu me apresento eu me chamo José e sou paraplégico desde os meus 16 anos claro que agora sou muito mais velho hihi e o meu passatempo é o pc e o Arduino não entendo muito de electrotécnica mas adoro ela

Bem eu gostava que fosse o mesmo sketch postado em cima visto que ele me esta a dar bem somente queria Adicionar no mesmo sketch um detector de chuva e um anemómetro Bem eu ainda não comprei nada visto que eu ainda não sei o que tenho de comprar o detector de chuva eu ja vi qual seria no aliexpress e o anemómetro seria mediante o que o sketch seria

Desde ja o meu muito Obrigado

ja vi que é muito difícil acrescentar essas duas funções no sketch eu digo isso pq eu não sei como é

O meu muito Obrigado a quem me respondeu fico grato por a disponibilidade que tiveram em me responder