Hi,
Arduino UNO read analog input between 0-5V, but I have 330omh resistor with my sensor giving 0-0.02A. Using V=IR ...it will be 6.6V more than the limit. So is it ok to build this, is it safe for the board? will the reading be ok?
What that page doesn't tell you is what resistance to start with. Basically, you want to minimize the current flowing into the Arduino. I like to start generally with 10KOhms for the bottom (ground side) resistor, and then calculate the other one from that, hoping it matches closely to a standard resistor value.
This page has an excellent voltage divider calculator. However, it does not match it to common resistor values. I ran it for a 6.6V max input, and then compared it to common values and came up with a 3.3KOhm and 10KOhm resistor, with the 10K connected to ground.
How does the sensor connect? Without a power supply above 5V it is unlikely it can magically generate more than 5V... Is the 330 ohm value fixed or can you change it?