void loop()
{
pulseHigh = pulseIn(pulsePin, HIGH);
pulseLow = pulseIn(pulsePin, LOW);
pulseTotal = pulseHigh + pulseLow; // Time period of the pulse in microseconds
frequency = 1000000 / pulseTotal; // Frequency in Hertz (Hz)
String sensorVal = String(frequency); // Read the value of the sensor on A0
sensorVal.toCharArray(sensorPrintout, 10); //convert the reading to a char array
if (frequency >= 1100 && frequency <= 1150)
{
Serial.println(frequency);
i want to transform : if (frequency >= 1100 && frequency <= 1150) on : if frequency = freq0
Serial.println(frequency);
thanks