Using Ultrasonic sensor with node-red

  • First you need to install node-red-node-pisrf

  • After you install node-pisrf already you will see rpi-srf in Raspberry Pi column. Then you just drag and drop as figure below:

  • Then you need to connect Ultrasonic sensor with Raspberry Pi. You can connect as pin below:

  • After connect Ultrasonic sensor with raspberry Pi already now back to the node-red and do as below:

Add debug and connect it as below:

  • Add dashboard

  • Double on gauge

  • Then it will bring you into this dashboard page.

Now back to node-red and click on gauge again and change Units and Range and Deploy it again.

Then back to Dashboard page you will see

Last updated

Was this helpful?