After carpet cleaning, it is generally safe to sleep in a room as long as the carpet is completely dry. Wet carpets can lead to mold and mildew growth, which can cause respiratory problems, so it's important to ensure that the carpet is thoroughly dried before spending any time in the room. The drying time for wet carpets can vary depending on several factors, such as the level of humidity, air flow, and type of cleaning equipment used, but generally, it can take several hours or even a day to dry completely. It's important to follow the carpet cleaning technician's instructions for drying the carpet, which may involve using fans, opening windows, or turning up the heat in the room. Once the carpet is completely dry, it's safe to sleep in the room. If you or someone in your household has respiratory problems or allergies, it may be a good idea to wait a little longer or take additional precautions, such as running an air purifier in the room, to ensure that the air quality is good.