I'm a novice in electronics. I have this project that I want to connect three sensors a turbidity sensor(DFRobot Analog Turbidity Sensor Module Gravity Series), Flowrate sensor(YF-S01 Water Flow Sensor) and a DS3231 RTC Module to a single LAFVIN ESP32 Development board Microcontroller Processor integrated WIFI+Bluetooth ESP-WROOM-32 CP2102 CHIp NodeMCU-32S TypeC. Thank you for those who will answer.
Your topic was moved to its current location as it is more suitable.
Could you also take a few moments to Learn How To Use The Forum.
It will help you get the best out of the forum in the future.
Thank you
Welcome!
That sounds like an interesting project that could be a lot of fun! However, please keep in mind that we are not a free design or code-writing service. We’re more than happy to help with your design or code, but we need you to make an initial attempt. Please design and write your code, then post it along with an explanation of what’s not working properly. There is also a for hire section if you want to pay for it.
- Show Your Work First: Before asking for assistance, make an attempt to design or write the code yourself. Share your work along with details about what isn’t working.
- Provide Clear Documentation: Since we can’t see your project, share an annotated schematic (best) or a clear drawing of your setup. Pictures are welcome, but avoid using Frizzing diagrams as they are wiring diagrams, not schematics, and are not ideal for troubleshooting.
- Include Technical Details: If there is specific hardware involved, include links to technical information. There are often many versions of similar components, so precise details are essential.
- Reference Resources: For additional help, check out useful links and tutorials: Useful Links on Arduino Forum. Of course one of the better sources of information (in my opinion) is the Arduino Cookbook. Skim it cover to cover and stop on any project that interests you.
The turbidity sensor connects to an ADC-capable pin for analog input, the YF-S01 flow sensor connects to an interrupt-capable GPIO (don't forget a voltage divider for 3.3V compatibility), and the DS3231 RTC module connects via I²C (SDA and SCL pins).
All three sensors should be working reliably on the ESP32 at the same time.
as @J-M-L  indicates should be no great problem
do a web search for libraries which support the sensors
using example code from the libraries test each sensor in a separate program
then combine the test programs into a single program to make sure the sensors work together
when that works implement your project
added a pulse counter to one of my BME280 test programs
// ESP32 - BME280 sensor and pulse counter
// ESP8266 nodeMCU v3 GPIO5 D1 SCL GPIO4 D2 SDA
// ESP32 devkit GPIO22 SCL GPIO21 SDA
// BME280 setup
#include <Wire.h>
#include <SPI.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_BME280.h>
Adafruit_BME280 bme;  // I2C
// pulse count setup
#define RXPIN 16  // input for pulses
// interrupt handler
volatile int pulseCounter = 0;
void IRAM_ATTR handleInterrupt2() {
  pulseCounter += 1;
}
void setup() {
  Serial.begin(115200);
  Serial.println();
  Serial.println(F("\n\nESP32 BME280 and pulse count test"));
  if (!bme.begin(0x76)) {
    Serial.println("Could not find a valid BME280 sensor, check wiring!");
    while (1)
      ;
  }
  Serial.println("BME 280 initialised");
  // setup pulse p;ulseCounter
  attachInterrupt(digitalPinToGPIONumber(RXPIN), handleInterrupt2, RISING);
}
void loop() {
  static unsigned long pulseTimer = millis(), BME280Timer = millis();
  // every second print pulse count
  if (millis() - pulseTimer >= 1000) {
    Serial.printf("Pulse count %d\n", pulseCounter);
    pulseCounter = 0;
    pulseTimer = millis();
  }
  // every 5 seconds print BME280 data
  if (millis() - BME280Timer >= 5000) {
    BME280Timer = millis();
    Serial.print("Temperature = ");
    Serial.print(bme.readTemperature());
    Serial.println(" *C");
    Serial.print("Pressure = ");
    Serial.print(bme.readPressure() / 100.0F);
    Serial.println(" hPa");
     Serial.print("Humidity = ");
    Serial.print(bme.readHumidity());
    Serial.println(" %");
  }
}
serial monitor output (1kHz square wave input on pin 16)
ESP32 BME280 and pulse count test
BME 280 initialised
Pulse count 1000
Pulse count 1000
Pulse count 1000
Pulse count 1000
Pulse count 1000
Temperature = 24.80 *C
Pressure = 1013.22 hPa
Humidity = 41.67 %
Pulse count 1000
Pulse count 1000
Pulse count 1000
Pulse count 1000
Pulse count 1000
Temperature = 24.81 *C
Pressure = 1013.20 hPa
Humidity = 41.61 %
Pulse count 1000
Pulse count 1000
Pulse count 1000
Pulse count 1000
Pulse count 1000
Temperature = 27.78 *C
Pressure = 1013.26 hPa
Humidity = 57.30 %
Pulse count 1000
Pulse count 1000
Pulse count 1000
Pulse count 1000
Pulse count 1000
Temperature = 28.94 *C
Pressure = 1013.14 hPa
Humidity = 58.51 %
Pulse count 1000
Pulse count 1000
Pulse count 1000
Pulse count 1000
Pulse count 1000
Temperature = 29.49 *C
Pressure = 1013.13 hPa
Humidity = 59.80
the ESP32 has an internal RTC - could you use that rather than the DS3231?
the main problem with the ESP32 RTC is that it cannot be battery backed without battery backing the ESP32 itself
last time I used a battery backed RTC with an ESP32 on a custom PCB I used a MCP7940N RTC
Sounds like a fairly complicated project for a novice.
What other ESP32 projects have you successfully completed?
for some reason I thought one of the sensors was a BME280 - hence code in post 8 - however, pulse count code maybe useful
one interfaces the SEN0189 turbidity sensor via an ADC - results of some test done years ago
analogue output test results using coffee grounds
test 1 air, water and Coffee grounds in water – voltage reading using a UNO
air 3.2V
clear water 4.1
settled coffee grounds 3.8
gentle stir 3.4
more stir 2.9
more stir 2.6
more stir 2.1
more stir 1.9
more stir 1.4
more stir .9
more stir .4
test 2 coffee grounds with water drained 
voltage 0.03
Test 3 added more coffee grounds then rapid stir 
then sample every second
first column UNO ADC reading second column voltage
73   0.36
65   0.32
111   0.54
142   0.69
109   0.53
142   0.69
157   0.77
158   0.77
151   0.74
170   0.83
159   0.78
166   0.81
172   0.84
174   0.85
172   0.84
172   0.84
183   0.89
183   0.89
181   0.88
183   0.89
187   0.91
187   0.91
184   0.90
185   0.90
189   0.92
188   0.92
188   0.92
192   0.94
195   0.95
although above test were using a UNO should be no problem using an ESP32
there are more sophisticated industrial turbidity sensors but cost hundreds of £, e.g. Labkotec S2