voltage

Sir,
I'm doing my project on ultrasonic sensor from that i got serial monitor output from the below code
Water Level Meter

Measuring water level with ultrasonic sensor HR S04.

Arduino IDE 1.5.8
*/

int trig = 12;
int echo = 11;

void setup()
{
Serial.begin(9600);
pinMode(trig, OUTPUT);
pinMode(echo, INPUT);
}

void loop()
{
long t = 0, h = 0, hp = 0;

// Transmitting pulse
digitalWrite(trig, LOW);
delayMicroseconds(2);
digitalWrite(trig, HIGH);
delayMicroseconds(10);
digitalWrite(trig, LOW);

// Waiting for pulse
t = pulseIn(echo, HIGH);

// Calculating distance
h = t / 58;

h = h - 6; // offset correction
h = 100 - h; // water height, 0 - 100 cm

hp = 2 * h; // distance in %, 0-100 %

// Sending to computer
Serial.print(hp);
// Serial.print(" cm\n");
Serial.print("\n");

delay(1000);
}

but i wanna get convert this output to the voltage range of 0-5V. please do help me.

Please read this before posting a programming question and add code tags to your post

Use a PWM pin and a low-pass filter, or get a Due which has a DAC (though only for 0 - 3.3V)

but i wanna get convert this output to the voltage range of 0-5V. please do help me.

How? What is the relationship between distance and voltage?