1. file: `energy meter/measure.c` 2. Before to start the acquiring loop the noise level should be measured to take into account. ``` ▸ /* !TODO: evaluation of the noise that acts on ADC block */ ▸ val = adc_sample(ADC_LINE(ch), ADC_RES); ▸ if(val < 0) { ▸ ▸ printf("[!] sampling failure\n"); ▸ ▸ return -1; ▸ } ```