Skip to main content
Warning: You are using the test version of PyPI. This is a pre-production deployment of Warehouse. Changes made here affect the production instance of TestPyPI (
Help us improve Python packaging - Donate today!

Simple module to access HCSR04 sensor on RaspiPi

Project Description

HC-SR04 Ultrasonic Sensor on Raspberry Pi

A simple module for calculating distance in centimeters, using an HC-SR04 sensor and a Raspberry Pi.


pip install hcsr04sensor


The module does the following;

  • Returns an error corrected distance by using the median reading of a sorted sample.
  • Rounds the value to a specified decimal place.
  • Adjusts the reading based on temperature by adjusting the speed of sound.

Release History

This version
History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Hash SHA256 Hash Help Version File Type Upload Date
(2.1 kB) Copy SHA256 Hash SHA256
Source Oct 18, 2014

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting