Hi, thanks for the help, Im still having problems

When I use your code i get a cant convert float to int

so I tried after converting value from LDR, float angle = 180 - (LDR / 5.68333);

float x = 90 + 65 * cos(angle);

float y = 490 + 65 * sin(angle);

line (90,490,x,y);

Now I got a perfect line from midpoint of arc to edge of arc, but the angle in the debug output: example 156.732 doesnt match where the needle in the meter is, the needle is shifting all the time even though the LDR is giving a constant value?