I have a square wave output from a hall effect sensor that is DC-shifted by about 4V. If I understand the image below correctly, the output of the hall sensor is a square wave between 4V and 7.5V, and that the output is DC-shifted by 4V. Is this interpretation correct? If yes, how do I remove this DC shift? The square wave is as shown below. Would a simple cap at the output work? I need to interface the signal to an MCU and it needs to be between 0-3.3V. I simulated the design shown here but it does not seem to work in my case.