ultrasounds to send and receive Morse code

those 40 khz should I play with them through pwm

Yes I would.

The transmitter just replace the crystal oscillator circuit with the aduino.

The receiver looks fine.