Smart furniture for enclosed spaces