I've been working on a system to take with me shooting. It's essentially an external ballistics application for my Android phone that gives me bullet path calculations. It's not meant to be a whiz bang super ballistics calculator that will tell you everything for every bullet and condition. It's set up to calculate the functions I want for a limited number of cartridges, loading conditions and projectiles.
The first thing I did was develop the means to make any corrections needed for the flight path due to temperature, humidity or altitude. These can be all lumped together by calculating the air density. This is the circuit for the Assistant set-up. It's a little module (Bosch BME280) that reads temperature, atmospheric pressure, and relative humidity. I use those inputs to calculate the air density. It also accounts for any altitude corrections that might need to have been made through the direct reading of the atmospheric pressure. In fact the manufacturer likes to claim you can get an altitude within a meter or so from it. The values are read in and sent via Bluetooth to my Android app.