Cells sense oxygen levels through specialized proteins such as hypoxia-inducible factors (HIFs). These proteins regulate the expression of genes involved in adaptive responses to low oxygen levels. In histological studies, the expression of HIFs can be detected using immunohistochemistry techniques, providing insights into how tissues respond to hypoxic conditions.