Timer and smoke detector.

Sorry but that link leads no where. Without knowing what Hardware you are using, we can't tell you which library you should use to get a reading from the sensor.