Node Red - R Pi sensor

The error "Command failed: python3 ~ dht_simpletest.py":
~/dht_simpletest.py is a Bash shortcut for <my home directory>/dht_simpletest.py.
You left out the /
It would not have fixed whatever problems you are experiencing though.

Please share your Python code and Node-Red flow.
https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506