So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By dragondaud
#72700 A zero return from the pulseIn means you didn't get a pulse, probably caused by the lack of common ground, as schufti says. I usually power my sensors from the board, which avoids that issue. If your dev board is plugged in to USB, then you can power the sensor from the VIN/5V pin and a GND pin. Most of the NodeMCU boards are 5V tolerant on input, so then you'd be good to go.