OK thanks so much!

Do you know about the hardware part?

Do I need to pull up with a resistor?