Wemos D1 mini and JSN-SR04T-2.0: Type of power supply affects the sensor readings Pretty similar to what is described here I have the strange problem that my sensor readings are affected by the type of power supply I use.
Whenever I connect my D1 mini through USB with laptop everything works fine. The readings make sense and are quite accurate.
But as soon as I disconnect it from the laptop and use a USB power supply (I tested different ones) the readings do not make sense anymore.
I also tried to apply the sketch to a NodeMCU board. The results are the same. So I assume it has something to do with either the sensor or the ESP 12E.
Any suggestions?
Try a different supply or computer, it sounds like that one has a lot of ripple and or noise on it.  Not all USB power supplies are clean and some do not have much filtering.