when i used the DHT11 with my arduino uno everything worked excellent.
I'm doing a project that reads nitrogen, phosphorus and potassium (NPK) with a NPK sensor and I want to upload it to Google sheets through the built-in ESP8266 but I don't know how can I send the data obtained on the MEGA to the ESP so I can upload it, I know that I have to send the data from one serial port to another so I can serial print the values on the ESP as the first step but I don't know how to continue, in the future I'll add coordinates and more info but I suppose that it's the same way. For those who managed to get the DHT11 (Temperature & Humidity digital sensor) working with the Arduino MEGA2560, let me tell you : GREAT, YOU'RE A BOSS P.S.