medium resolution of automatic empty bottle detection using plc logic