Update rpi-temp.sh

version with functions (not working still)