Home Forums Crumble Support How to use the HC-SR04 distance sensor

This topic contains 0 replies, has 1 voice, and was last updated by  Mike 9 months ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #4211

    Mike
    Participant

    Connect the sensor as shown. Use the code as shown to get a value from the sensor and save it into a variable. This allows you to watch the value as the program runs.

    Attachments:
    You must be logged in to view attached files.
Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.