After a reboot, we can run ```sudo read_fan_speed.py``` to get an update on the fan's current speed. Nice!
'''How to make the fan script run automatically after booting?'''
There are two ways to achieve it;
1. Put the following line at the end of .bashrc file: (Default)
cd ~
nano .bashrc
copy the following line to .bashrc file.
python /home/pi/x735-v2.5/pwm_fan_control.py &
In this way, this line of command will be executed automatically when the user logs in;
2. Use crontab to add a timed task. For details, please refer to [[How to add crontab]].
Return to [[X735]]