Need help coniguration for HC-SR04 ultrasonic sensor, tasmota , sonoff mini

Hello guys

im trying to get HC-SR04 ultrasonic sensor to work with sonoff mini through GPIO 2 but on tasmota page they state that the HC-SR04 needs 2 pins (echo,trigger) but i only got one available pin on sonoff mini is there any work around

Thanks

GPIO16 is easy to get to https://templates.blakadder.com/sonoff_mini.html

1 Like

Thanks that worked

1 Like

out of curiosity
I tried it with only GPIO2 and it worked so maybe we can save GPIO16 for something else.