Thank you, sure here I enclosed the program I am trying to adapt to different chips.
Note please the uncommented lines that wouldn't work, you'll see what I mean.
there are two equations one for the
ADL5513 and one for the AD3861
I am tackling another job which is the warning routine how can I get the program to react only after the threshold exceeds the limit.
In the code I enclosed it reacts as soon as power on no matter the signal strength!
AD8307_bar.ino (1.89 KB)