An aneroid barometer is mechanical. The main part is a diaphragm, which is sealed and all the air is removed. The diaphragm has a series of levels connected to a pointer, which moves around a scale. Similarly as the atmospheric pressure changes, the diaphragm expand or contracts and moved the pointer accordingly