Problem with reading the voltage divider sensor

Yes, Unless you need fast response a filter into the analog pin is always desirable.