Programming Help Plants

Hello needs help, I'm a total noob when it comes to esp8266 and arduino I'm trying to make a blynk-based project to automatically water flowers and turn on the light at fixed times, I will add that I love to grow exotic flowers, so sometimes when I leave there is no one to care for them
My components :
-nodemcu
-temperature and humidity sensor AHT10 CONNECTED TO D1,D2
-compacitive soil noisture sensor 1.2 CONNECTED TO A0
-relay CONNECTED TO D3,D4

I need someone to help me write the code for esp8266 and blynk to automatically turn on the pump when soil sensor show dry, and give 10 or 20sec of pomp watering plant. And i need to set relay 2 on time for led light schedule PLEASE can anyone help me try to do it my self but no luck i get lost :slight_smile:

try example sketches for every single item of project. try to understand how does it programmed. if they all works copy commands of initialization from examples to your new sketch.

I did try it but no luck i get stuck with AHT10 how to code it to show on Blynk when i put it show only high

show what you do.

aha. cool. is it example sketch of AHT10 library?

please insert as Code , not as picture and not as text.

sorry i tried but because im new member of forum i cant

copy this:
изображение
and place after this:
изображение

and this delete:
изображение

no luck on blynk still high

of coarse. you await some thing what not staying in program.
write in setup() this:
изображение
";" at the end

OK then how to solve it

write in setup() this:
изображение
";" at the end
now will be sensor initialized at start of program.
now u need read sensor like in example and send to blynk cloud.
i hope blynk app have you already setted up and added proper widget.

if not work then you need to learn how its work, one by one. i would make the project online after my two sensors and relay are working and i see result some how. then will be WiFi setted up and Blynk.

no luck the same high

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.