Hello guys! I just wanted to ask you guys about some component replacements so that I can recreate the W1209 Digital Thermostat Module.
The parts I want to replace are the following:
AMS1117-5.0
STM8S003F3P6
Also, what values do you think I should use with the Diodes (D1) and Transistor?
I know you'll ask me "Why don't you just buy the board?", As a student I want to learn how the past inventors of this circuit made the whole project, and also it is summer in my place I want to make a thermostat and learn at the same time. I hope you can give me a bit of your time, thanks!

The parts I want to replace are the following:
AMS1117-5.0
STM8S003F3P6
Also, what values do you think I should use with the Diodes (D1) and Transistor?
I know you'll ask me "Why don't you just buy the board?", As a student I want to learn how the past inventors of this circuit made the whole project, and also it is summer in my place I want to make a thermostat and learn at the same time. I hope you can give me a bit of your time, thanks!
