local detector = peripheral.find("environment_detector") local gearshift = peripheral.find("Create_SequencedGearshift") if not detector then error("No environment detector found") end if not gearshift then error("No Create Sequenced Gearshift found") end local isDoorOpen = false -- Initial state of the door