I took a freshly formatted sd card, installed the latest raspberry pi os, downloaded and ran your script.
It is broken, please fix it, and let me know when you have.
Error happened in install process:
Enable auto rotate error:
Status:1
Error:Traceback (most recent call last):
File "/usr/local/bin/auto-rotator", line 11, in <module>
load_entry_point('sh3001==0.0.
File "/usr/lib/python3/dist-
return get_distribution(dist).load_
File "/usr/lib/python3/dist-
return ep.load()
File "/usr/lib/python3/dist-
return self.resolve()
File "/usr/lib/python3/dist-
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "/usr/local/lib/python3.7/
from sh3001.sh3001 import Sh3001
File "/usr/local/lib/python3.7/
def get_from_config(self, name, default=""):
^
SyntaxError: invalid syntax