Can I have a simpler simple sensor reading

Dear Rob Faludi,
I bought your book and found it very useful.
However, when stating the simple sensor network I found the code too confusing for someone who is a beginner on processing. I wish I can just read the value coming from an ADC D3 from the router each 2 seconds inside Processing using the Coordinator API mode 2. But I found it a bit hard to simplify your code to do only this…
Could you help me?
Kind Regards

Try using Python and the samples provided in the Software Development kit for the Gateways. Digi already has it written for you as one of the examples.