controlling a 12v air pump using an input from a speedometer

so im trying to make a device to verify experimental setup. for doing that im in need of controlling an air pump (12v dc) in a specific way to give varying output pressure (from no air flow to max airflow), after taking input from a speedometer of car. For this i would like to know how to take input from a speedometer or how to simulte a spedometer input in arduino, and how to control a dc pump to get varying output. if i can get these two , i can combine these two to make my project. suggest solutions,please help . thank you.

pump something like this:- Sevylor 12V 15 PSI High Pressure Air Pump review - YouTube

One way to read the speedometer is through the data available through the obdii port. There are obd port boards available that will communicate with Arduino. IF you can stream the speedometer data to the Arduino that way, you can use pwm to control the speed of the dc motor that runs the air pump.

Recognize that what you tell us makes us gain a lot of knowledge in using these knowledge.