An internet detector. It takes some seconds to tell if you're connected to the internet or not by the way. ONLY SOME SECONDS. Remix if you want.
A YouTube tutorial which I only had to see a part of it.