A room temperature all-optical sensor based on two-dimensional SnS2 for highly sensitive and reversible NO2 sensing.