An IS machine for producing glass containers, comprising a plurality of stations which each comprise a blank mold and a finishing mold, and comprising a lubricating tool for lubricating at least some of the blank molds with a lubricant, the lubricating tool comprising a spray head for spraying the lubricant and comprising a robot connection, to which the spray head is fastened and by means of which the spray head is movable between different stations within the IS machine, the spray head being reversibly detachably fastened to the robot connection by means of a coupling, wherein
- the robot connection is provided with a sensor, by means of which it can be detected whether the coupling is open or closed, and
- the sensor is connected to a switch apparatus, using which the operation of the station at which the spray head is currently located can be terminated, and/or by means of which a robot action can be initiated when it is established by the sensor that the coupling is open.