Prepare the carrots: Peel the carrots and slice them thinly or cut them into diagonal pieces to ensure even cooking
Prepare the pumpkin: Peel the pumpkin and slice it thinly or into similar-sized pieces as the carrots.
In a large bowl, place the sliced carrots and pumpkin. Mix together the olive oil, salt, black pepper, and dried rosemary or thyme (if using) to coat the vegetables evenly with the seasoning.
Arrange the seasoned carrot and pumpkin slices evenly in the air fryer basket, making sure they are not overlapping
Close the air fryer basket and set the air fryer to 180 degrees Celsius (350 degrees Fahrenheit) for a cooking time of approximately 15-20 minutes. Check the vegetables periodically, flipping them to ensure even cooking until they become golden brown and crispy
Once the carrot and pumpkin slices are cooked, remove them and serve immediately. You can sprinkle a little extra salt and black pepper to taste.