I have maid one tutorial on ac current measurement using acs712 current sensor and Arduino. Go through it.