Device that measures the degree of darkness of a photographic or semitransparent material or of a reflecting surface