Problem 'SeeedOled' does not name a type

Hi friends ! My name is Quentin, I’m in the middle of a program. The goal will be that after 5 minutes for example, with the use of a YFS201 I can know my water consumption. I do not want a flow but the number of liters I have consumed after a certain time. I know how to have the flow but I do not know how to have a quantity of water after 5 minutes for example

I have to code a demeter, a temperature sensor and a display and that I managed for the moment

could you help me find a way to find my consumption? thank you so much

(sorry if my english is not perfect I am french)

my program :

#include <Wire.h>
#include <SeeedOLED.h>
#include <OneWire.h>
#include <DallasTemperature.h>

//CAPTEUR DE DEBIT
volatile int NbTopsFan; //mesurer les fronts montants du signal
int Calc;
int hallsensor = 2; //L’emplacement de la broche du capteur
void rpm () // C’est la fonction que l’interruption appelle
{
NbTopsFan++; // Cette fonction mesure le front montant et le front descendant du signal des capteurs à effet Hall

}

//CAPTEUR DE TEMPERATURE
OneWire oneWire(2);
DallasTemperature sensors(&oneWire);
DeviceAddress sensorDeviceAddress;

void setup(void){

//CAPTEUR DE DEBIT
pinMode(hallsensor, INPUT);
Serial.begin(9600);
attachInterrupt(0, rpm, RISING);

//CAPTEUR DE TEMPERATURE
Wire.begin();
Serial.begin(9600);
pinMode(SDA,OUTPUT);
sensors.begin();
sensors.getAddress(sensorDeviceAddress, 0);
sensors.setResolution(sensorDeviceAddress, 12);

//AFFICHEUR
SeeedOled.init();
SeeedOled.clearDisplay();
SeeedOled.setNormalDisplay();
SeeedOled.setPageMode();

}

void loop(void){

//CAPTEUR DE DEBIT
NbTopsFan = 0;
sei();
delay (1000);
cli();
Calc = (NbTopsFan * 60 / 7.5);
Serial.print (Calc, DEC);
Serial.print (" Litre/Heure\r\n");

//CAPTEUR DE TEMPERATURE
sensors.requestTemperatures();

//CONSIGNE 43 DEGRE CELSIUS
if (sensors.getTempCByIndex(0)>43);
{
SeeedOled.setTextXY(7,0);
SeeedOled.putString("la temperature ");
SeeedOled.setTextXY(8,0);
SeeedOled.putString(“est trop elevee”);
}
if (sensors.getTempCByIndex(0)<43);
{
SeeedOled.setTextXY(7,0);
SeeedOled.putString("la temperature ");
SeeedOled.setTextXY(8,0);
SeeedOled.putString(“est bonne”);
}
}
//AFFICHEUR

SeeedOled.setTextXY(0,0);
SeeedOled.putString(“La temperature”);

SeeedOled.setTextXY(6,0);
SeeedOled.putString(“est “);
SeeedOled.putNumber(sensors.getTempCByIndex(0));
SeeedOled.putString(” degre C”);

SeeedOled.setTextXY(4,0);
SeeedOled.putString("le débit est ");
SeeedOled.putNumber(Calc);
SeeedOled.setTextXY(5,0);
SeeedOled.putString(“L/min”);

That code is missing code tags and is not complete, so it doesn't compile.

if (sensors.getTempCByIndex(0)>43);

Check some if statements in examples or other code. See how many of them have a semicolon ; on the end. Not the "does not name a type" problem but still a problem.

Steve

OneWire oneWire(2); // pin2 for DS18B20?

attachInterrupt(0, rpm, RISING); // pin2 on an Uno

What's going on here. Leo..

SeeedOled indeed doesn't name anything.

Perhaps you meant SeeedOLED which is the class defined in SeeedOLED.h ?

I found the solution I just missed one "}" thanks to you