Screen orientation not working

While the screen other than Screen1 should go after a certain period of time, it gives the warning that there is no such screen. But it gives this warning even though there is a screen to go


Why are you importing screen?