I have successfully coded a program in python to read temperature data from a BS18B20 1 wire sensor and log it in a daily email to give me an overview of temperature changes.
My next move is to make this program run at startup, however I have hit a stumbling block. I have to issue the following after each reboot to allow the program to read the sensor.
Code: Select all
sudo modprobe w1-gpio sudo modprobe w1-therm
I have tried a few thing on google like adding the commands to the /etc/modules file but this did not work.