Using a 433 Mhz Transmitter and Receiver with a LCD and DHT11

Hi, I’m fairly new and having a few problems with my code:

#include <DHT.h>
#define DHTPIN A0
#define DHTTYPE DHT11
DHT dht(DHTPIN, DHTTYPE);


long idInterval = 600000;           
int keyPin = 4;                        
int ledPin = 13;
int chk;
float hum;
float temp;

void setup() {
pinMode(keyPin, OUTPUT);             
pinMode(ledPin, OUTPUT);             
Serial.begin(9600);
dht.begin();


}

void loop() {
    delay(2000);
    hum = dht.readHumidity();
    temp= dht.readTemperature();
    float data = (temp * 1.8 + 32);
    Serial.print ("  Temp: ");
    Serial.print(data);
    Serial.print("F");
    data();
    
}
    void data()
{
    digitalWrite(keyPin, HIGH);
    digitalWrite(ledPin, HIGH);
    delay(100);
    digitalWrite(keyPin, LOW);
    digitalWrite(ledPin, LOW);
    delay(150);
    }

I get an error message saying, “‘data’ cannot be used as a function” in line 31. Any help is appreciated.

-Cbro4

Give these a different name, like “data1”:

data();

void data()

I then get another error, "'data1' was not declared in this scope."

CrossRoads - No error now, but still issues. I think I got it from here, though. Thanks for the help!