Need help designing a sketch to use with the ESP-01

Other thread removed.