code to record wind speed

dear sir
thank very much for your replay i made necessary modification for my post
please can you help me how to write a suitable code that match with the nrg system