Airspeed indicators work by measuring the difference between static pressure, captured through one or more static ports; and stagnation pressure due to "ram air", captured through a pitot tube.
The static ports are located on the exterior of the aircraft, at a location chosen to detect the prevailing atmospheric pressure as accurately as possible, that is, with minimum disturbance from the presence of the aircraft.