A sensor device (45) for calibrating a staining device (20) has a coupling unit (46) which is configured to be attachable to a transport device (22) of the staining device (20). A sensor unit (48) of the sensor device (45) is adapted to detect the presence of components of the staining device (20).