I had my granddaughter living with me till July 11 and then went back to her mom who can claim her this year
You didn't provide much information so no one can answer this question; I suggest you use the IRS Interactive Tax Assistant to determine if you can claim your granddaughter as a dependent. https://www.irs.gov/help/ita/whom-may-i-claim-as-a-dependent