beginner needs some advice on ADC sampling rate and wifi module

ADC can have value upto 1023, this could be a problem

Well seen :wink:
look for highByte and lowByte in the Arduino reference
or a union {int i; byte b[2]} in a C manual