Soil moisture sensor wuestion

It works with the amp function, thanks. I’d also like to calibrate the sensor. I know 0% is when it’s out of soil, but when should it be 100%? When compeltely submerged in water? Also, is the calibration done by changing the values inside the map function?

Here’s the code for my main function:

void val(){
  analogRead(sensorpin);
  n = analogRead(sensorpin);
  int reverse = map(n, 0, 1023, 1023, 0);
  Blynk.virtualWrite(V0, reverse);
}