scaling data?

how would i get the sensor information to fit that resolution in my code as evenly as possible?

map().