Devantech SRF02 Ultrasonic Range Finder

Hi, Does anyone know if a module has been written for the SRF02 sensor I’m hoping to use it to monitor water level.


1 Like

Hi Chris. There is not an input module for this sensor. The current list of supported devices can be found in the manual at Supported Inputs - Mycodo. It’s not difficult to create a custom input module. I recommend finding a similar input module for a distance sensor and modifying it to work with a Python library designed to read your sensor. If you look at the length inputs, you can see the last 3 utilize I2C sensors. These would be what I would base a new sensor on, since it should only require duplicating the file with a different file name, then changing input_name_unique, descriptive information, the Python library dependency, and the measurement code, at a minimum.