Once You reach Ujjain ,you will get many options there. There are many hotels available at different prices and also dharamshalas are available if u want to stay in one.
Have you tried Airbnb? Sign up with my link and you will get up to ₹3,025 off your first trip. https://abnb.me/e/G2OyQGnWc4?suuid=4a27e05f-124a-4dc8-8f85-6257ac72958c&slevel=0
On Airbnb you will get number of verified options. Instead of going directly to the Airbnb website, use this link, you will get handsome discount.