This explains why it is working just fine until I touch the pin with the probe. Even though the other probe is already connected to the ground.

Ioannis