An automated sampler for sampling contaminants that are dissolved in water. It is provided that the housing component is rotatably fixedly attached to the housing flange by a form-locked connection. The first metal plate is electrically connected with the first wiring pattern and the second wiring pattern, respectively, by means of a via and by means a via.