A photoacoustic gas detector for SO2 was developed for ship exhaust gas emission monitoring. The basic measurement setup is based on the absorption of electromagnetic radiation of SO2 at 285 nm wavelength. A commercially available ultraviolet (UV) light-emitting diode (LED) is used as the light source and a micro-electro-mechanical system (MEMS) microphone as the detector. In order to achieve the required detection limits in marine applications, a measuring cell which allows an acoustically resonant amplification of the photoacoustic signal was developed and characterized. A limit of detection of 1 ppm was achieved in lab conditions during continuous gas flow. Long-term measurements on a container ship demonstrated the application relevance of the developed system.