This should have been simple but it was not working. The video cut me off as I was explaining. But I thought it was the sensor so I soldered a new one. I tried both and it still did not work. I then tried both with my code from my project 2 and it worked fine. So I looked at the wiring and it seemed off. I fixed it and I tweaked the code and tried a regular speaker because I can't here the high pitches very well. Check out the video to understand.
But yay it works!