You can unlock the next room by finishing all the tasks in the current room. The task amount differs for different rooms. When you finish a room, you will see a “Room Complete” popup as a congratulation to your progress. And the next task would be opening the next room.