PinCapture - alternative

Hi Guys i’m trying to use this code from there

https://www.ghielectronics.com/community/codeshare/entry/228

but seems methode PinCapture doesnt exist anymore or is changed or GHI Library for NetFramework 4.3Q2 changed ???

can someone provide alternative (or create method for use) of Pincapture to be able to use this code for DHT11 sensor

thanx,
VALONI