I would like to connect the sensor without using grove, is it correct to use pin D0 for data?
You can choose the pin you like. Using D0 is possible.
In the examples on the internet they almost all use
Serial.print to print the reading to your pc.
Serial is connected to D0 and D1.
SerialUSB.print will output the data on the Serial Monitor of Arduino.