Serial/Sensor reading problems

If you are running from 5V, your inputs should not exceed 5.5V (absolute maximum). See datasheet, page 313.

You can use a voltage divider to reduce an input to be within range.