Core Electronics Forum

Replaced HC-SR04 with JSN-SR04T...Not working

Hi All,
Excuse my ignorance, however, I have a project using the HC-SR04 ultra sonic sensor…works fine. I want to swap it out with the waterproof JSN-SR04T. I plugged it in but it does read. I get “0”. Using the same code, the same Trig/Echo pins, 5v through a regulator to be sure.

Do I need to change the code?

Cheers
Charlie

Hi Charlie, what device are you using the sensors with? Arduino, Raspberry Pi, Particle?

Particle Electron through an external 5v power supply to the sensor

There’s a forum dialogue on the Particle site regarding the two sensors, follow some of the tips there and let us know how you go: