Radiohead tx and rx pins

i am trying tx rx ask modules for to send humidity and temp data between to arduinos.
i have now just try to send a message(text) for to test, but that don't work either.
one UNO for the RX part, and one arduino pro micro for the tx part.
i'm using Radiohead library ask.h because i like it and it can handle my moduls srx882 and stx882. i am using the sketch below and nothing comes out on the receiver side.
the sketch is for Uno, so the receiver part should work. The problem is likely on the transmitter side with my arduino pro micro. i have try to change the tx-pin to 3 where i have connected the data pin to the modul.
noting i beeing transmitted.

here is the transmitter code:

 /* 433 MHz RF Module Transmitter Demonstration 1
  RF-Xmit-Demo-1.ino
  Demonstrates 433 MHz RF Transmitter Module
  Use with Receiver Demonstration 1
 
  DroneBot Workshop 2018
  https://dronebotworkshop.com
*/
 <
// Include RadioHead Amplitude Shift Keying Library
#include <RH_ASK.h>
// Include dependant SPI Library 
#include <SPI.h> 
 RH_ASK driver(2000,10,3,3,false);//constructor to change any default setting/pins obs näst sista siffran är txpin nu satt till 3
// Create Amplitude Shift Keying Object
RH_ASK rf_driver;
 
void setup()
{
    // Initialize ASK Object
    rf_driver.init();
}
 
void loop()
{
    const char *msg = "Welcome to the Workshop!";
    rf_driver.send((uint8_t *)msg, strlen(msg));
    rf_driver.waitPacketSent();
    delay(1000);
}

and here is the reciver part:
<

// Include RadioHead Amplitude Shift Keying Library
#include <RH_ASK.h>
// Include dependant SPI Library 
#include <SPI.h> 
 
// Create Amplitude Shift Keying Object
RH_ASK rf_driver;
 
void setup()
{
    // Initialize ASK Object
    rf_driver.init();
    // Setup Serial Monitor
    Serial.begin(9600);
}
 
void loop()
{
    // Set buffer to size of expected message
    uint8_t buf[24];
    uint8_t buflen = sizeof(buf);
    // Check if received packet is correct size
    if (rf_driver.recv(buf, &buflen))
    {
      
      // Message received with valid checksum
      Serial.print("Message Received: ");
      Serial.println((char*)buf);         
    }
}

Please edit your post to add code tags ("</>" editor button). Also, please post links to the TX and RX modules, along with a wiring diagram.

Did you connect the grounds?

Did you connect antennas?

Please follow the advice given in the link below when posting code, in particular the section entitled 'Posting code and common code problems'

Use code tags (the </> icon above the compose window) to make it easier to read and copy for examination

yes both.


i'm using Pro micro for the transmitter and one uno for the reciver.

Are you sure you connected them to the right PCB mounting hole? Are you going to answer reply #2?