Open a terminal and inside /etc/dhcpcd.conf write the following lines:
interface [wlan0||eth0]
static ip_address=192.168.1.2/24
static routers=192.168.1.1
static domain_name_servers=192.168.1.1
Reboot RPi and check IP ($ ifconfig)
cat << EOF > getRoomTemperature
#!/bin/bash
ssh pi@192.168.1.2 "python3 DHT11_Python/example.py"
EOF