DIY PetKit feeder local integration to Home Assistant via ESPHome

Bare with my ignorance but I’m not sure how you do this? Is the pet feeder powered via the mains when you do this test? I presume one of the probes is attached to a groud and the other to the GPIO pad? And what’s the multimetre set to? I’m keen to know what sort of test this is called so I can Google it further and learn more.