How do I program ESP8266-12E using PlatformIO for soil moisture sensor and pump control?
I'm having trouble programming my ESP8266-12E using PlatformIO. I have experience with Arduino UNO but am struggling to adapt to ESP8266. The Serial Monitor displays gibberish, and my code doesn't work on the ESP8266 like it does on the UNO.
I'm trying to read a soil moisture sensor connected to A0 and control a 5V pump using a MOSFET on the 5V pin. Can someone help me understand the differences in programming ESP8266 with PlatformIO?
Specific examples and code snippets would be greatly appreciated. @Middleware & OS
1 Reply
Can you tell me are you using arduino Framework on PlatformIO?
There are few things to consider in platform IO While Creating the Project that You have select the right board, then you have to make sure that you have selected the right Framework for example there ar various options like Arduino, esp-idf