A mattress (200) including one or more sensors (250) to sense movement of at least a portion of the mattress (200) caused by extension or retraction of an associated mattress support section (230) of a bed frame. A pneumatic control system (240) adjusts inflation and/or deflation of at least one inflatable bladder (232,238,234) of the mattress in response to a signal received from the one or more sensors.