Fault finder: Read Modbus sensors with an ESP32

6 checks for this build on the ESP32. Work from the top: power first, then each part, then the code.

0 of 6 checked
Power🔧 DC volts, 20 V rangeCheck 1 of 6

ESP32 supply pin

Plug the ESP32 into USB. Black probe on a GND pin, red probe on the 3V3 pin of the board.

You should see: 3.15 to 3.45 V

V

Readings are compared with the ranges for this build's parts. A meter on the wrong range or a loose probe gives odd numbers: check those first.

Common faults in this build

Modbus error 0xE2: what should I check?

Timeout. Check A and B, power to the sensor and the baud rate.

Values are always 0: what should I check?

The probe needs to be in soil and warmed up.

Swapped A and B gives silence: what should I check?

Swap the two bus wires.

MQTT never connects: what should I check?

Check the broker address, user and password.