it checks raspberry pi is connected to internet or not
sudo apt install python3-pip
pip install RPi.GPIO
pip install requests
mkdir .config
cd netCheck.py .config/netcheck/netcheck.py
sed 's/<user>/$USER/g' netcheck.service
if last command does not work then manually the with your username in netcheck.service
bash install.sh
sudo cp netcheck.service /etc/systemd/system/
sudo systemctl start netcheck
sudo systemctl enable netcheck
sudo systemctl status netcheck
(+) pin : GPIO 21/pin 40 GND pin : GPIO GND/pin 39
pinout
raspi-gpio get
raspi-gpio set <PIN_number> op pn dh
raspi-gpio set <PIN_NUMBER> op pn dl