Reduce the threshold by 10. Adapt the range for output. Works perfectly now!!