Yeah, but how does the microcontroller know that pin 2 is grounded or not if the connection isn't made?