Porous crystalline ruthenium complexes are oxygen sensors.