how are ions detected in a mass spectrometer?
The more the ion is charged, the more it gets deflected. The beam of ions passing through the machine is detected electrically. It's important that the ions produced in the ionisation chamber have a free run through the machine without hitting air molecules. The vaporised sample passes into the ionisation chamber.