Tell us about yourself!
Note to anyone trying this. Driving a relay directly from an Arduino will fry your board. His relay pack includes transistors to drive the relays.
Definitive Guide to Setting Up Your New ESP01 Module
Why on earth aren't you using the pi gpio, or better yet, an esp8266? You're using $100 in components where $5 would do...
Arduino Buck-Boost Converter
I only saw what code you included in the screenshot but it appears to me that you are overcomplicating the switch. Attach one side to ground, the other to a pin and set that pin to INPUT_PULLUP. No resistor needed, only one pin required. Will be HIGH when button is not pressed, and LOW when pressed.
Girino - Fast Arduino Oscilloscope