Mitigation of clipping in sensors