Grove Temperature and Humidity DHT22 without GrovePi+

I’m trying to make a small temperate and humidity station and want to record the temperature and humidity. I’ve got the sesor to work on a Pi 3 with the GrovePi+ hat but want to get the data without needing the hat.

I’ve connected the sensor to D4, power (5V) and ground but I’m not sure how to get anything beyond HIGH./LOW. It looks to be the same sensor as the adafruit DHT22 but with a PCB and (hopefully) built in resistor but the library also won’t detect the sensor.

Is it possible and any ideas on how to to do it?