A lid sealing machine includes a casing attached to a housing, a sealing device disposed in the casing, a container holder for supporting and moving containers into and out of the casing, a supply reel, a take up reel and a roller rotatably attached onto the housing for supporting a film material and for transmitting the film material from the supply reel around the roller and to the take up reel, and for moving the film material between the sealing device and the container holder, and for allowing the film material to be forced to seal the containers by the sealing device. A detecting device may be used for detecting a rotating movement of the roller and a movement of the film material relative to the housing.