Hi @arzaman, Sorry to answer with a question, but I just want to check I've understood.
You want to accommodate the 5V supply into this sensor and associated 5V? logic output from it down to the 3V3 input of StickC, Core2, etc?
A couple of thoughts:
#1 StickC has a 3V pin out on the end opposite Groove port, so I guess you could go from the head end of the StickC to sensor (reduce all to 3V3).
#2 Copy the voltage divider circuit a lot of the M5Stack sensors use (they are quite cheap, so you could even use one as a donor and solder your sensor on to it).
https://docs.m5stack.com/en/unit/dual_button
#3 I've a feeling Seeed, DFRobot, Waveshare do a mini board to do such a thing, but probably equivalent to donor M5Stack part.
If you used the M5Stack Mini Dual Button Unit as a donor/connection board. I suppose you could have two inputs, pin 32 and pin 33, hide the pull up resistors, etc. Or the Proto units, perhaps an easier solder at home proposition.
Q) If it "can be powered from data line. Power supply range is 3.0V to 5.5V", would 5V power issue go away anyway?
https://shop.pimoroni.com/products/temperature-probe-ds18b20-arduino-compatible-adapter?variant=39365415829587
(NB Alt schemtic for circuit)