When someone says "sweet dreams," it is a common courtesy and expression of well-wishing for a peaceful and pleasant sleep. In response, you can say something simple and appreciative, such as:
"Thank you, I hope you have sweet dreams too."
or
"Thanks! I'll do my best to have sweet dreams."
It's a friendly and warm way to acknowledge their kind wishes and reciprocate the sentiment.