give are a programmed entryway switch (assuming the edge of the entryway connects with some object during shutting and the entryway consequently turns around in…