Define "precisely".
You will find that consumer grade humidity sensors are not very accurate or reliable, so start simply. You may have to refine your goals as you learn.
I agree that Peltier modules, if properly heat sinked, can be used to (de)humidfy air.