Pineapples love warm, sunny conditions. Keep it at warm room temperature, ideally between 22 and 28 degrees Celcius. Pineapple plants are able to absorb some water through their leaves. They do not need a lot of water, so wait until the soil has dried out before watering, and then water the leaves and soil.
Pineapples prefer full sun, so give them plenty of light.