Issue with reading Arduino Port

I had uploaded the firmata sketch to the Arduino, but I still was having the issue. The 17 comes from the list, I just had it commented out after I had it set. Also regarding using just serial, can I do that if I’m using one of the pins as an input, because I need to read it and then output what the pin’s value is?