Just listen. You are a new user. Your question does not indicate how much experience you have. There are beginners (as in every forum) who have never heard of a lowpass. And your question reads like this.
And no,...
Correct, great.
Does not matter here.. but a zero is a zero.
Correct, great. Eh. Not great. SensorPin has a value, which you can find in this thread.
Correct, great.
Correct, great. Let me extend this:...
LOL ....... :-)
Your answer has absolutely nothing to do with "if (analogRead(sensorPin == LOW)) { ..."
Then: What's the difference of a digital zero and a analog zero? Hm.... Must be something new? ;-)
.
...
A true square wave (you did not mention any duty cycle) is : (surprise) fixed square. 50%.
An ADC has an integrator, with parameters that are good for it's intended sampling frequency, not your square wave.
A low...
Yes, it's possible. You can use the Audio-Lib for input, upsample + filter with CMSIS, and add a modified I2S output. Note for the Audio-Lib you'll need an additional input or output which provides the timing for usb.
...