If you want someone to write code for you, be prepaired to pay for it.
This part of the forum helps people with hardware, or code they have written that doesn't work as it should.
I assume you already have an Arduino, so start with the basics.
There are many examples that come with the IDE. Work your way through some.
The very first one, AnalogReadSerial, basically does what you want.
Attached is the condensed version plus added 1.1volt Aref line.
This is only the start. I guess you want an LCD display that show liters.
And I assume the tank on your bike is not box-shaped.
Start learning, and soon you can do much more than a simple fuel gauge.
Leo..
/* Fuel Gauge
560ohm resistor between the 3.3volt pin and the A0 pin
fuel sender connected to A0 and ground.
*/
int sensorValue; // raw A/D readings from the sensor
void setup() {
analogReference(INTERNAL); // use the internal ~1.1volt bandgap reference
Serial.begin(9600); // start serial monitor
}
void loop() {
sensorValue = analogRead(A0); // read A0
Serial.println(sensorValue); // print to serial monitor
delay(1);
}