anbu123:
i want to read the electrical appliances state. so i need to convert 230v to 5V dc.
Those two statements do not make sense one does not follow on from the other.
What do you want to do and what do you mean by “state”? And why do you think converting the mains to 5V will help you do this?