Interfacing External Sound Sensor with nRF52832

I have made following connection between nordic device and external sound sensor:

  1. VCC--> 5V
  2. GND--> GND
  3. GATE --> Pin 04
  4. ENVELOPE --> A0

I would like to know how to proceed with the code in eclipse. i have a code but i am not sure how to proceed with it.

Thanks in Advance