Alright, you need to check that your programmed module is working.
That’s what @jerome was asking you.
You connect your module to the PC, open the Arduino IDE and open the ‹ Serial Monitor › window from the ‹ Tools › tab
That should allow you to follow the program’s progress through its different stages.
Product Description
Features:
Product parameters:
This board contains 11 digital input/output pins; all pins support interrupts, PWM, I2C, 1-Wire (except D0) and a micro USB connector; 1 input (below 3.2V) compatible with Arduino; 500mA resettable fuse
Module:
Adopting a small convenient size, this ESP-12F (ESP8266)-based development board can help your project save space
Specifications:
Color: black
Size: 34 x 25 x 7 mm / 1.33 x 0.98 x 0.28 inches
How to use:
How to get started:
Set up the driver: before using the development board, you must install the CH340g driver.
Hardware package installation:
There are 2 ways to install the hardware package: Boards Manager or GIT.
Package includes:
2 * Development boards
Notes:
Due to manual measurement, please allow slight size differences.
Module: with a small and convenient size, this ESP-12F (ESP8266)-based development board can help your project save space
WIFI development board: built-in 5V 1A switching regulator, 4 MB
Product parameters: this board contains 11 digital input/output pins; all pins support interrupts, PWM, I2C, 1-Wire (except D0) and a micro USB connector; 1 input (below 3.2V) compatible with Arduino; 500mA resettable fuse
Product features: this Internet development board is well suited to Arduino and can be programmed in the Arduino IDE and supports OTA (over-the-air) updates
Package includes: you get 2 development boards, each module contains 6 pin headers
Would you please, only for testing purposes, install Tasmota on it?
If yes, it’s very simple. Go to Install Tasmota
Connect your Wemos, choose the Tasmota FR version, ESP8266 module and Flash!
If everything worked, your module should now be broadcasting a WiFi access point name like Tasmota-xxxxxx
We’ll see whether it flashed or not…
So, it’s not a problem with drivers or hardware. We’re making little progress but we’re moving forward.
If you want to play with Tasmota, distance sensor support is native (in cm, not in %). That could validate the sensor’s operation/wiring.
The problem therefore comes either from the Arduino IDE configuration or from the program itself.
Which pins did you connect your sensor to?
I think the problem comes from the Arduino IDE and the selected board type, because the program appears to have been uploaded but doesn’t start, judging by the output in the serial monitor console.
Normally you should see a message like … connecting to 192.168.XX.XX then connecting to MQTT
Okay, I reinstalled everything
I flashed the ESP8266
Installed Arduino IDE 2.0.1
But in the library I can’t find ESP8266Wifi
There is « ESP-WiFi settings » or « ESP_WiFiManager »
Any idea?