Help with my Grafana, InfluxDB, ESP and temperature sensor code? Confused.

I have recently taken up a project of using an ESP8266-12e and a TMP36 temperature sensor to create a small system that uses InfluxDB and Grafana to send results through the internet. The code is

void setup() {
  Serial.begin(9600);
  Serial.setTimeout(2000);

  while(!Serial) { }

  //deep sleep for 12hrs
  Serial.println("Sleep mode activated);
  ESP.deepSleep(4.32e+10);
}

void loop() {
  int reading = analogRead(sensorPin);

  float voltage = reading * 5.0;
  voltage /= 1024.0;

  Serial.print(temperatureC);
  Serial.println(" degrees C");

}

And the problem is, I have no idea how to implement InfluxDB or Grafana into it! I have tried following tutorials but I couldn't put them all together. So far I have used these to tutorials:
TMP36 tutorial

And this for deep sleep

Sorry if I have missed something very basic, I am not the best at all this.

Please help!

And the problem is, I have no idea how to implement InfluxDB or Grafana into it!

Nor do you seem to be able to post links to these systems.

You need to explain why you think either system is suitable.