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

Release History

This version
History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
hcsr04sensor-1.0.0.tar.gz (2.1 kB) Copy SHA256 Checksum SHA256 Source Oct 18, 2014

Supported By

WebFaction WebFaction Technical Writing 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 Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting