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

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.