I am using my Raspberry Pi to check if my Internet connection is still working. If the connection to the…