issue: Trying to use float values and my returns are just "0.00"

The code is supposed to use a water sensor to compute a percentage of water coverage to an LCD screen. But, the LCD screen just shows “0.00”

Help is appreciated!

#include <LiquidCrystal.h>

  const unsigned int waterPin = 0;
  int waterLevel;
  float waterMeasure;
  const unsigned int led = 7;
  const unsigned int buzzerPin = 10;

  
  LiquidCrystal lcd (12, 11, 5, 4, 3, 2);

void setup() {
  // put your setup code here, to run once:
  Serial.begin(9600);
  pinMode(waterPin, OUTPUT);
  pinMode(led, OUTPUT);
  digitalWrite(led,LOW);
  lcd.begin(16,1);
}

void loop() {
  // put your main code here, to run repeatedly:
  waterLevel = analogRead(waterPin);
  waterMeasure = waterLevel * (1/100);
  Serial.println(waterMeasure);
  Serial.print("%");
  updateLCD();
  delay(100);
  
  if(waterLevel >= 200){
    Serial.println(waterMeasure);
    updateLCD();
    
    buzz();
    digitalWrite(led, HIGH);
    delay(100);
    digitalWrite(led,LOW);
    delay(100);
  }
  else {
    Serial.println(waterMeasure);
    updateLCD();
    delay(100);
    noTone(buzzerPin);
  }
}
void buzz(){
  tone(buzzerPin, 2000);
  delay(50);
  noTone(buzzerPin);
  delay(50);
}

void updateLCD() {
  lcd.write(waterMeasure);
  lcd.print(waterMeasure + "%");
  delay(100);
  lcd.clear();
}

Do you want "waterpin", which looks like an analog input, to be initialized by:

pinMode(waterPin, OUTPUT);

?

I'm kind of new to this, but yes it is in an analog output, so how else would I initialize it?
It's connected to A0.

You should declare it using "A0", not '0'. You don't need any other initialization:

#define WATER_PIN  A0

...

void loop()
{
.
.
.
    waterLevel = analogRead(WATER_PIN);

.
.
.

epicgamer:
I'm kind of new to this, but yes it is in an analog output, so how else would I initialize it?
It's connected to A0.

You mean analog input right? Pin A0 can't be used for analog (really PWM) output.

Input means the signal goes INto the Arduino. Output means it comes OUT from the Arduino.

The result of the following calculation is always 0, because the result of integer division (1/100) is 0.

  waterMeasure = waterLevel * (1/100);

If you want waterMeasure to correctly represent the result of a floating point calculation, use

  waterMeasure = 0.01*waterLevel;

Do get rid of the line

pinMode(waterPin, OUTPUT);

Use of A0 as the pin number for analog input 0 is recommended, but 0 works as well.