What does IIR and FIR filter are used for in embedded

thanks for reply everyone

so this is the signal which I am trying to detect.
as u can see in map002 picture there is no target(by target I mean metal) available
in map003 picture there is target but on 1 feet distance
in map004 target is completely touching the coil. this is the signal I am trying to work on

in my opinion change is significant and can be detected

and as I said earlier the signal is not going below 0 volt

just focus on A.out signal the delay signal is for switches that is doing sampling in the analog circuit . I am taking in A.out signal in controller