foam sensor