Same code working differently on Nano 33 IoT and Mega

Seems like your time scale is set wrong. Also they curve should be going to positive. 3,3V or 5V depending on your type of Arduino. Here is what my oscilloscope shows. Blue is clock and yellow is data.

Here is more explanation about all this: