Before you even upload code to the arduino, you'll need to get your IO account going - that way you can properly test your code and connection!
The first thing you will need to do is to login to your Adafruit IO account and get your Adafruit IO Key if you haven't already. Click the AIO KEY button on the right hand side of the window, to access your key.
A window will pop up with your Adafruit IO key. Keep a copy of this in a safe place. We'll need it later. (Don't use the one in the image above, its not a real key, its just to indicate what the key looks like)
You will now need to create feeds called "door" and "battery". If you need help getting started with creating feeds on Adafruit IO, check out the Adafruit IO Feed Basics guide.
Now you can start pushing data into the feeds, by wiring up and uploading the sketch to your Arduino!