Foam monitor