This project uses a DHT11 temperature and humidity sensor with the three pin but you can also use any other sensor the changes in the code should be as per the model. I have used Arduino UNO for this project.
DHT sensor with the Arduino board
LCD and Arduino uno connections
So now you can measure real time environmental data and you can display it in real time