Can't get expected readings using PulseIn command

Just post your code. Copy and paste the code into a post. Highlight it then click the </> in the toolbar above. Once that you have posted the code we can copy it to our IDE and format it if necessary.