I gave these connections property, but I am not getting the output. So is there any mistakes in that circuit diagram and any changes should I do. Please help me with this
As @ericgibbs mentioned, seeing your code is important. There are two parts to this problem and you have only provided (some of) one of them. Photos of your actual wiring would also help to eliminate a lot of blind questioning.