Sending data to another Arduio via HC12 TX RX

Hi There
could someone help please, I am a 75 year, and the gray matter is eroding away.

I have made a pump and status controller which works well for my situation, however I want to display the LCD info on a remote second board via 2off HC12 Tranceivers
I have set Digital Pin 9 to HC12 RX and Digital Pin 10 to HC12 TX

I have attached the send Sketch and the receive sketch, I hope this might explain what I am trying to do,

In other words I want to send the value of (distance) in the send sketch to the receive sketch which will allow the receive sketch to display on the LCD the info required.

Could you please modify the coding in both sketches as required, your help with this would be more than greatly appreciated.

I have had the 2 HC12's communicating with each other serially.

I have spent many days searching the internet for an answer but I cannot get my head around the coding to make it work.

Tank_Pump_Receive1Mod.ino (2.19 KB)

Tank_Pump_Send_1.ino (2.86 KB)

DougC:
Could you please modify the coding in both sketches as required, your help with this would be more than greatly appreciated.

No.
This is not a code writing service. Show us what you've tried and document the errors.

I am sorry, I am not asking for any commercial purposes,
but I can't get around if it is possible to do want want, I don't understand how to get the info and read/write to a buffer and ,converting and re-converting once received on the receive side.
I am hoping if I can get the required coding it would enable me to understand the workings for future projects

Do you control both ends of the communications?

Hi, If you mean if I type in the (send) serial monitor and press send I then receive the typed message on the (receive) monitor YES.

I HAVE ATTACHED THE REVISED SEND AND RECEIVE SKETCHES

Tank_Pump_Receive_M2.ino (2.61 KB)

Tank_Pump_Send_M2.ino (3.29 KB)